package cn.jiyun.feign;

import cn.jiyun.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 季乾帅
 * @create 2023/8/23 10:57
 */
@FeignClient(value = "Contest")
public interface ContestFeign {

    @GetMapping("contest/findContestAll")
    public Result findContests(@RequestParam("id") Integer id);

    @GetMapping("/contest/findJingSai")
    public Result findJingSai(@RequestParam("id") Integer id);

    @RequestMapping("/contest/Dz")
    Result dainZhan(@RequestParam("ss") Integer ss,@RequestParam("id") Integer id);

    @GetMapping("contest/findTest")
    Result findTest(@RequestParam("id") Integer id);

    @GetMapping("contest/findPx")
    Result findPx();
}
